home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / outline / outline.sty < prev    next >
Text File  |  1992-02-07  |  2KB  |  51 lines

  1. % Save file as: OUTLINE.STY            Source: FILESERV@SHSU.BITNET  
  2. % outline.sty by Peter Halvorson, Georgia Institute of Technology, 
  3. %    Nuclear Engineering, (404) 894-8710   peter@fission.gatech.edu 
  4. %                                          ne201ph@prism.gatech.edu
  5. % As of January 10, 1991 
  6. % Create six-level list environment {outline} for making outlines; mark
  7. %  each outline topic with \item.  Use of label/ref sequences provided.
  8. %  A direct hack of the enumerate code from latex.tex ( added more depth and
  9. %  outline style numbering).  Use as you would use the enumerate environment.
  10.  
  11. \@definecounter{@outlndepth}
  12. \newcount\@outlndepth \@outlndepth = 0
  13.  
  14. \@definecounter{outlni}
  15. \@definecounter{outlnii}
  16. \@definecounter{outlniii}
  17. \@definecounter{outlniv}
  18. \@definecounter{outlnv}
  19. \@definecounter{outlnvi}
  20.  
  21. \def\outline{\ifnum \@outlndepth >5 \@toodeep\else
  22.       \advance\@outlndepth \@ne
  23.       \edef\@outlnctr{outln\romannumeral\the\@outlndepth}\list
  24.       {\csname label\@outlnctr\endcsname}{\usecounter
  25.     {\@outlnctr}\def\makelabel##1{\hss\llap{##1}}}\fi}
  26.  
  27. \let\endoutline =\endlist
  28.  
  29. \def\labeloutlni{\theoutlni.}
  30. \def\theoutlni{\Roman{outlni}}
  31.  
  32. \def\labeloutlnii{\theoutlnii.}
  33. \def\theoutlnii{\Alph{outlnii}}
  34. \def\p@outlnii{\theoutlni}
  35.  
  36. \def\labeloutlniii{\theoutlniii.}
  37. \def\theoutlniii{\arabic{outlniii}}
  38. \def\p@outlniii{\p@outlnii\theoutlnii}
  39.  
  40. \def\labeloutlniv{\theoutlniv.}
  41. \def\theoutlniv{\alph{outlniv}}
  42. \def\p@outlniv{\p@outlniii\theoutlniii}
  43.  
  44. \def\labeloutlnv{(\theoutlnv)}
  45. \def\theoutlnv{\arabic{outlnv}}
  46. \def\p@outlnv{\p@outlniv\theoutlniv}
  47.  
  48. \def\labeloutlnvi{(\theoutlnvi)}
  49. \def\theoutlnvi{\alph{outlnvi}}
  50. \def\p@outlnvi{\p@outlnv\theoutlnv}
  51.